classdef SRandomUtils
    
    methods (Access = public, Static)
        
        function [random] = uniform(xmax, xmin)
            if(nargin == 0)
                random = rand();
            elseif(nargin == 1)
                random = xmax * rand();
            else
                random = xmin + (xmax - xmin) * rand();
            end % if
        end % function
        
    end % methods
    
end % classdef
